<template>
  <div id="loading">
    <div class="loading-icon">
      <slot></slot>
    </div>
  </div>
</template>

<script>
  export default {
    name: "Loading"
  }
</script>

<style scoped>
  #loading {
    width: 100vw;
    height: 100vh;
    background: gray;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    position: fixed;
    top: 0;
  }

  .loading-icon {
    width: 50px;
    height: 50px;
    background: magenta;
  }
</style>
